<?php
namespace app\core\Http;
class ContentType{
    private array $list=[
        'text'=>'text/plain',
        'html'=>'text/html',
        'json'=>'application/json',
        'xml'=>'application/xml',
        'pdf'=>'application/pdf',
        'jpeg'=>'image/jpeg',
        'png'=>'image/png',
        'mp3'=>'audio/mpeg',
        'mp4'=>'video/mp4',
        'zip'=>'application/zip',
        'xform'=>'application/x-www-form-urlencoded',
        'formData'=>'multipart/form-data',
        'stream'=>'application/octet-stream',
        'js'=>'application/javascript',
        'css'=>'text/css',
        'forceDownload'=>'application/x-download',
        'flash'=>'application/x-shockwave-flash',
        'wav'=>'audio/wav',
        'midi'=>'audio/midi',
        'csv'=>'text/csv',
        'rssXml'=>'application/rss+xml',
        'xhtmlXml'=>'application/xhtml+xml',
        'gif'=>'image/gif',
        'quicktime'=>'video/quicktime',
        'zip'=>'application/zip',
        'gzip'=>'application/gzip',
        'tar'=>'application/x-tar'
    ];


    public function get(string $name){
        return $this->$list[$name];
    }
}